package club.ximeng.sliceupload.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author liu xm
 * @date 2022-03-07 13:13
 */
@Getter
@AllArgsConstructor
public enum ResultCodeEnum {
    // 正确执行后的返回
    SUCCESS(200, "操作成功"),
    // 操作失败
    FAILED(111, "操作失败"),
    METHOD_NOT_ALLOWED(405, "请求方法不正确"),
    INTERNAL_SERVER_ERROR(500, "系统异常"),
    NOT_FOUND(404, "请求未找到"),
    BAD_REQUEST(400, "请求参数不正确");


    private final Integer code;
    private final String message;
}
